using UnityEngine;

/// <summary>
/// 窝瓜 植物数据
/// </summary>
[CreateAssetMenu(menuName = "创建ScriptableObject/Plants/SquashData")]
public class SquashData : PlantData
{
    [Header("攻击属性")]
    [Tooltip("攻击伤害值")]
    public long AttackDamage = 1800;
    
    [Tooltip("攻击范围（半径）")]
    public float AttackRange = 1.0f;
    
    [Tooltip("是否一次性使用")]
    public bool IsOneTimeUse = true;
    
    [Tooltip("攻击延迟时间（秒）")]
    public float AttackDelay = 0.5f;
    
    [Tooltip("跳跃范围")]
    public float JumpRange = 3.0f;

    private void OnEnable()
    {
        Type = PlantType.Squash;
        // 窝瓜没有死亡动画，执行攻击后直接销毁
        HasDeathAnimation = false;
    }
}

